package cn.gjxblog.aop.utils.environment;

import org.springframework.aop.framework.AopContext;

public class HelloServiceImpl implements HelloService {
    public Object hello() {
        System.out.println("this is my method~~");

//        System.out.println(this);
        ((HelloService) AopContext.currentProxy()).play();
//        System.out.println(AopContext.currentProxy());


        return "say hello";
    }

    public void play() {
        System.out.println("this is my play~~");
    }


    private void privateMethod(){
        System.out.println("this is my privateMethod");
    }
}
